Render Spritesheet
Create spritesheet from image array or animation.
Node Data | |
---|---|
Compose | |
Display name | |
Render Spritesheet | |
Internal name | |
Node_Render_Sprite_Sheet | |
Inheritances | |
node | |
node_render_sprite_sheet | |
Inputs | |
node_render_sprite_sheet | |
surface |
Sprites |
enum |
Sprite Set |
int |
Frame Step |
enum |
Packing Type |
int |
Grid Column |
enum |
Alignment |
int |
Spacing |
padding |
Padding |
slider |
Range |
vec2 |
Spacing |
bool |
Overlappable |
bool |
Custom Range |
Outputs | |
node_render_sprite_sheet | |
surface |
Surface Out |
surface |
Atlas Data |
Render Spritesheet generate a single surface containing frames from animation or array. It is recommended that every frames should have the same size.
Input
There are 2 types of input set by the Sprite Set: Animation and sprite array.
When set to animation, the node will
require full rendering to record all the animation frames. You can also use Frame Step to skip frames for smaller spritesheet.
When set to sprite array, the node will runs automatically similiar
to Image Grid.
Output Properties
Packing Type
Control how the surface is arranged. Horizontal and Vertical mode will place the surfaces linearly. Grid will place image in a grid.
Alignment
When the input surfaces has different sizes, Alignment control where to place the smaller surface:
Spacing
Set the space between each surface. If the Packing Type is set to grid, then this value will becomes vec2 for horizontal and vertical spacing.
Padding
Add padding space in each direction afterward.